<div class="bina">
    <div class="nav">
        <a href="#personal/points">
            <div class="nav-li">积分规则</div>
        </a>
        <a href="#personal/shoppinguide">
            <div class="nav-li">员工提成</div>
        </a>
        <div class="nav-li focus">商品二进制</div>
    </div>
    <hr/>
    <div class="bina">
        <table class="paper-table">
            <thead>
                <td style="width: 8%;"></td>
                <td style="width: 17%;">商家名</td>
                <td style="width: 15%;">一级返利</td>
                <td style="width: 15%;">二级返利</td>
                <td >已兑现额度</td>
                <td >可兑现额度</td>
                <td >操作</td>
            </thead>
            {{#each $Cache.user_bina.all}}
            <tr>
                <td>
                    <a target="_blank" href="{{bus.url}}">
                        <div class="logo">
                            <img bind-src="{{bus.info.logo_url&&(bus.info.logo_url+'?imageView/1/w/50/h/50')||'/images/logo.jpg'}}" />
                        </div>
                    </a>
                </td>
                <td>
                    <a target="_blank" href="{{bus.url}}">
                        <div class="storename">{{bus.info.title}}</div>
                    </a>
                </td>
                <td style="text-align:center;">￥{{#Fixed total_first_acc}}</td>
                <td style="text-align:center;">￥{{#Fixed total_second_acc}}</td>
                <td style="text-align:center;">￥{{#Fixed exchange_acc.exchanged_acc}}</td>
                <td style="text-align:center;">￥{{#Fixed can_apply_acc}}</td>
                <td>
                {{#if exchange_acc.state === $Top.config.BINA_STATE.未申请兑换}}
                    <button disabled="{{can_apply_acc==0}}" event-click="{{'$Top.$Event.user_bina.未申请兑换_to_申请兑换中'}}">申请提现</button>
                {{/if}}
                {{#if exchange_acc.state === $Top.config.BINA_STATE.申请兑换中}}
                   <i>等待商家打款</i>
                {{/if}}
                {{#if exchange_acc.state === $Top.config.BINA_STATE.商家已付款}}
                    <button event-click="{{'$Top.$Event.user_bina.商家已付款_to_用户确认付款'}}">确定收款</button>
                {{/if}}
                </td>
            </tr>
            {{/each}}
        </table>

    </div>
</div>
<xmp type="tag" name="collectiongoods">
<div class="item">
    <a target="_blank" href="${href}">
        <img title="${goodsname}" bind-src="${src}" class="goodsimg" />
    </a>
    <div class="price">￥${price}</div>
</div>
</xmp>